package com.arvato.common.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.ResourceBundle;

/**
 * Describe：存储常量的类
 * 
 * @author smallking
 *
 *         2017年10月15日
 */
public class ContantFinalUtil {
	
	/**
	 * 超级管理员的角色ID
	 */
	public static final String MAX_ROLE_ID = "super_admin_role";
	/**
	 * 超级用户的ID
	 */
	public static final String MAX_USER_ID = "super_admin";
	/**
	 * 最父级资源的ID
	 */
	public static final String MAX_RESOURCE_ID = "super_resource";
	/**
	 * 资生堂的品牌名称
	 */
	public static final List<String> BRAND_NAME_LIST = new ArrayList<String>();
	
	public static final String CONTEXT = ResourceBundle.getBundle("config").getString("context").toString();
	
	public static final String URL = ResourceBundle.getBundle("config").getString("url").toString();
	/**
	 * 资生堂CRM接口的请求地址
	 */
	public static final Map<String, String> URL_MAP = new HashMap<String, String>();
			
	public static final String IMG_PATH = CONTEXT + "/img/";
	static {
		
	//	URL_MAP.put("QueryCustomerBaseInfo", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerBaseInfo");
	//	URL_MAP.put("QueryCustomerOrders", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerOrders");
	//	URL_MAP.put("QueryCustomerOrderDetails", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerOrderDetails");
	//	URL_MAP.put("QueryCustomerPointHistory", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerPointHistory");
	//	URL_MAP.put("QueryCustomerGifts", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerGifts");
	//	URL_MAP.put("QueryCustomerHabits", "http://cnaarvato.shiseido.cn/crm-shiseido/async/ignore/QueryCustomerHabits");
	//  URL_MAP.put("NccAsync", "http://112.65.137.222:10000/crm-shiseido/async/ignore/NccAsync");
		
		BRAND_NAME_LIST.add("CPB");
		BRAND_NAME_LIST.add("GLS");
		BRAND_NAME_LIST.add("IPSA");
		BRAND_NAME_LIST.add("AUPRES");
	}

	private ContantFinalUtil() {

	}
}
